<?php
namespace Admin\Controller;
use Common\Controller\AdminbaseController;
// +----------------------------------------------------------------------
// | Date:2016年11月18日
// +----------------------------------------------------------------------
// | Author: EK_熊<1439527494@qq.com>
// +----------------------------------------------------------------------
// | Description: 此文件作用于****
// +----------------------------------------------------------------------
class DepartmentController extends AdminbaseController{
    
    public function index(){
        $this->display();
    }
    
    public function getData($cid){
       $data = D('Department')->where(['cid'=>$cid])->select();
       if (!$data) $this->error('数据获取失败');
       $this->ajaxReturn(['data'=>$data]);
    }
}